package com.link.base.base.sms.dao.mybatis.mapper;


import com.link.base.sms.model.Template;
import com.link.core.basic.dao.mapper.BasicMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: liulu
 * @Date:15:37 2018/11/5
 */

public interface TemplateMapper extends BasicMapper<Template> {

    public Integer statusUpdate(Template var1) throws Exception;

    public List<Integer> queryTemplIdByStatus() throws Exception;

    /**
     * 奖项下字段值的查询
     *
     * @author NingLanhao
     * @date 2019-05-22 11:48
     * @param actId 互动记录ID
     * @param tableName 表名
     * @param columnName 表下字段名
     * @return java.lang.String
     * @throws Exception
     */
    String queryTemplateValueByAct(@Param("actId") Long actId,
                                   @Param("tableName") String tableName,
                                   @Param("columnName") String columnName) throws Exception;
}
